package com.wish.wishsystem_management.controller;


import com.wish.wishsystem_management.service.ITbRoomInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import vo.ResultEntity;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author zhaiwj
 * @since 2021-03-22
 */
@RestController
@RequestMapping("/tbRoomInfo")
public class TbRoomInfoController {

    @Autowired
    private ITbRoomInfoService iTbRoomInfoService;

    @RequestMapping("/allRoominfoList")
    public ResultEntity allList() {
        try {
            this.iTbRoomInfoService.updateRoomInfoAllEs();
            return ResultEntity.ok("200", "全量处理成功", null);
        } catch (Exception e) {
            e.printStackTrace();
            return ResultEntity.error("401", "全量处理失败", null);
        }
    }

}

